package com.wocai.jrt.admin.user.service.impl;

import javax.inject.Inject;
import javax.inject.Named;

import com.vteba.service.generic.impl.MyBatisServiceImpl;
import com.vteba.tx.jdbc.mybatis.spi.BaseDao;
import com.wocai.jrt.admin.user.dao.UserRoleDao;
import com.wocai.jrt.admin.user.model.UserRole;
import com.wocai.jrt.admin.user.model.UserRoleBean;
import com.wocai.jrt.admin.user.service.spi.UserRoleService;

/**
 * 用户角色关联表相关的service业务实现。
 * @author yinlei
 * @date 2015-7-6 11:40:41
 */
@Named
public class UserRoleServiceImpl extends MyBatisServiceImpl<UserRole, UserRoleBean, String> implements UserRoleService {
	// 添加了方法后，记得改为private
	protected UserRoleDao userRoleDao;
	
	@Override
	@Inject
	public void setBaseDao(BaseDao<UserRole, UserRoleBean, String> userRoleDao) {
		this.baseDao = userRoleDao;
		this.userRoleDao = (UserRoleDao) userRoleDao;
	}
}
